C++ Crashcourse: Learning C++ the easy way by Conrad Benefiel

C++ Crashcourse: Learning C++ the easy way by Conrad Benefiel

Author:Conrad Benefiel [Benefiel, Conrad]
Language: eng
Format: epub
Published: 2017-02-09T08:00:00+00:00


Lastly the do-while Statement:

With this Statement we run all commands between the curly brackets at least once. This means first the program executes the commands and then checks the condition. If it is still true it executes all commands again, if not the statement is done. Again this is not a very popular Statement and has the same dangers as a normal while Statement.

Exercise:

1. Write a programm, that asks for a password. If the input is correct print out a message. If not print out "wrong password".

2. Write a programm that prints all even numbers from 1 to 100.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.